<h1>Listing sorts</h1>

<table>
  <tr>
    <th>Name</th>
    <th>Description</th>
    <th>Sort</th>
  </tr>

<% @sorts.each do |sort| %>
  <tr>
    <td><%=h sort.name %></td>
    <td><%=h sort.description %></td>
    <td><%=h sort.sort %></td>
    <td><%= link_to 'Show', sort %></td>
    <td><%= link_to 'Edit', edit_sort_path(sort) %></td>
    <td><%= link_to 'Destroy', sort, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New sort', new_sort_path %>